;(function () {
    // 步骤3：创建echarts实例
let myChart = echarts.init(document.querySelector('.r3'))

option = {
    legend: {
      top: 'top'
    },
    series: [
      {
        name: 'Nightingale Chart',
        type: 'pie',
        startAngle:-180,
        radius: [40,90],
        center: ['50%', '60%'],
        roseType: 'area',
        itemStyle: {
          borderRadius: 1,
        },
        data: [
          { value: 38, itemStyle: {normal:{color:"rgba(80,150,224,0"}},},
          { value: 38, itemStyle: {normal:{color:"rgba(80,150,224,0"}},},
          { value: 32, itemStyle: {normal:{color:"rgba(80,150,224,0"}},},
          { value: 30, itemStyle: {normal:{color:"rgba(80,150,224,0"}},},
          { value: 28, itemStyle: {normal:{color:"rgba(80,150,224,0"}},},
          { value: 30, name: '图例1' },
          { value: 38, name: '图例2' },
          { value: 32, name: '图例3' },
          { value: 40, name: '图例4' },
          { value: 55, name: '图例5' },
          
        ]
      }
    ]
  };


myChart.setOption(option)

window.addEventListener('resize', () => {
    myChart.resize()
})
}) ()


